<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .all {
        width: 500px;
        height: 300px;
      }
      .mei {
        width: 50px;
        height: 25px;
        float: left;
      }
      .mei-h {
        width: 200px;
        height: 200px;
        float: left;
      }
      .ge-h {
        width: 200px;
        height: 200px;
        float: left;
        margin-left: 200px;
      }
      .mei-h img {
        width: 200px;
        height: auto;
      }
      .ge-h img {
        width: 200px;
        height: auto;
      }
      .ge {
        width: 50px;
        height: 25px;
        float: left;
        margin-top: 0%;
      }
      .ge-b {
        width: 100px;
        height: 50px;
        margin-left: 300px;
      }
      .mei-b {
        width: 100px;
        height: 50px;
      }
      .mei-p {
        display: none;
      }
      .ge-p {
        display: none;
      }
    </style>
  </head>
  <body>
    <div class="all">
      <div class="mei">
        <button class="mei-b">妹</button>
        <div class="mei-h"><img src="mei.png" alt="" class="mei-p" /></div>
      </div>

      <div class="ge">
        <button class="ge-b">哥</button>
        <div class="ge-h"><img src="ge2.jpg" alt="" class="ge-p" /></div>
      </div>
    </div>
    <script>
      var mm = document.querySelector(".mei");
      var mm1 = document.querySelector(".mei-p");

      var gg = document.querySelector(".ge");
      var gg1 = document.querySelector(".ge-p");

      mm.onclick = function () {
        alert("小黄即将出现");
        mm1.style.display = "block";
      };
      gg.onclick = function () {
        alert("大黄即将出现");
        gg1.style.display = "block";
      };
    </script>
  </body>
</html>
